.PHONY:all
all:server client

.PHONY:server
server:protobuf_server
protobuf_server::protobuf_server.cc ../muduo/proto/pro.pb.cc ../muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -lpthread -lmuduo_net -lmuduo_base -lprotobuf -lz

.PHONY:client
client:protobuf_client
protobuf_client::protobuf_client.cc ../muduo/proto/pro.pb.cc ../muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -lpthread -lmuduo_net -lmuduo_base -lprotobuf -lz
	
.PHONY:clean
clean:
	rm -f protobuf_server protobuf_client